# $Id: PKGBUILD 76779 2012-09-29 19:28:30Z kkeen $
# Maintainer: Kyle Keen <keenerd@gmail.com>
# Contributor: Dave Reisner <d@falconindy.com>

pkgname=jansson
pkgver=2.4
pkgrel=1
pkgdesc='C library for encoding, decoding and manipulating JSON data'
arch=('i686' 'x86_64')
url='http://www.digip.org/jansson/'
depends=('glibc')
license=('MIT')
options=('!libtool')
source=("http://www.digip.org/$pkgname/releases/$pkgname-$pkgver.tar.bz2")
md5sums=('3aaa1bb1195d705fac602b7504c9b945')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  make DESTDIR="$pkgdir" install
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# vim:set ts=2 sw=2 et:
